import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

// 字体图标样式
import './assets/index.css'
import '@/assets/font-awesome-4.7.0/css/font-awesome.min.css'

// 引入vant组件样式
import 'vant/lib/index.css'
// 按需引入vant组件
import { Tabbar,  TabbarItem,  Icon,  Tab,  Tabs,  Col,  Row,  Button,  List,  Loading,  Sticky,  Overlay,  Search,  Swipe,  SwipeItem } from 'vant'

const app = createApp(App) // vue实例
app.use(router)

// 注册vant组件
app.use(Tabbar)
app.use(TabbarItem)
app.use(Icon)
app.use(Tab)
app.use(Tabs)
app.use(Col)
app.use(Row)
app.use(Button)
app.use(List)
app.use(Loading)
app.use(Sticky)
app.use(Overlay)
app.use(Search)
app.use(Swipe)
app.use(SwipeItem)

app.mount('#app')
// createApp(App).use(router).mount('#app')
